package com.ys.controller.api.outer;

import com.ys.timer.TimerWanliDaily;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/api/outer/wanli")
public class ApiOuterWanliController {

    private static final Logger logger = LoggerFactory.getLogger(ApiOuterWanliController.class);

	@Autowired
	private TimerWanliDaily timerWanliDaily;


	@RequestMapping("/test6")
	@ResponseBody
	public void test6(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
		timerWanliDaily.inquiryStore();
	}

	@RequestMapping("/test5")
	@ResponseBody
	public void test5(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
		timerWanliDaily.inquiryStatementList();
	}

	@RequestMapping("/test4")
	@ResponseBody
	public void test4(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
		timerWanliDaily.inquiryBalanceMc();
	}


}
